package com.kim.nidoya.net.entity;

import com.kim.net.NetEntity;
import com.kim.nidoya.net.URLConstant;

public class RegisterEntity extends NetEntity {
	private String verifyCode;
	private String trueName;
	private String password;
	private String recommendNum;
	private String email;
	private String userlevel;
	private String phoneNum;

	public RegisterEntity(String _verifyCode, String _trueName, String _password,
			String _recommendNum, String _email, String _userlevel, String _phoneNum) {
		this.verifyCode = _verifyCode;
		this.trueName = _trueName;
		this.password = _password;
		this.recommendNum = _recommendNum;
		this.email = _email;
		this.userlevel = _userlevel;
		this.phoneNum = _phoneNum;
	}

	@Override
	protected void init() {
		this.url =URLConstant.URL_REGISTER;
	}

	@Override
	protected void initHttpHeader() {

	}

	@Override
	public String getSendData() {
		String sendData = "{" + "\"verifyCode\":" + verifyCode
				+ ",\"trueName\":" + trueName + ",\"password\":" + password
				+ ",\"recommendNum\":" + recommendNum + ",\"email\":" + email
				+ ",\"userlevel\":" + userlevel + ",\"phoneNum\":" + phoneNum
				+ "}";
		System.out.println("register sendData :" + sendData);
		return sendData;
	}

}
